﻿using Shop.Core.Share;
using Shop.Model.Dto.Home;
using Shop.Model.Entity.System;
using Shop.Model.View.Home;

namespace Shop.IServices;

public interface IHomeService: IAppService
{
    /// <summary>
    /// Banner
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    AppResult<List<SysBanner>> Banner(BannerDto dto);

    /// <summary>
    /// 获取小程序码
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<AppResult<string>> GetWxaCode(WxaCodeDto input);

    /// <summary>
    /// 获取分享路径
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<AppResult<string>> GetSharePath(long input);

    /// <summary>
    /// 地址库
    /// </summary>
    /// <param name="dto"></param>
    /// <returns></returns>
    AppResult<List<AreaListVo>> AreaList(string dto);
}